package oop2;

/**
 * @author oldliu
 * @since 1.0
 */
public class TeacherTest {
    public static void main(String[] args) {
        int java = 60;
        int c = 60;
        System.out.println("这个同学，java是" + java + "分，c是" + c + "分");
        Teacher t = new Teacher();
        int avg = t.calc(java, c);
        System.out.println("平均分是：" + avg);
        System.out.println("这个同学，java是" + java + "分，c是" + c + "分");
        System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>");
        Student stu=new Student();
        stu.name="赵孟开";
        stu.java=61;
        stu.c=59;
        stu.show();
        int avg2 = t.calc2(stu);
        System.out.println("这个学生平均分是"+avg2);
        System.out.println("执行结束后：");
        stu.show();
    }
}
